package com.hrma.dao;

import com.github.pagehelper.Page;
import com.hrma.entity.OvertimeApplication;
import com.hrma.entity.OvertimeApplicationDTO;
import com.hrma.entity.OvertimeApplicationVO;
import com.hrma.entity.SelectResult;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OvertimeApplicationMapper {
    void add(OvertimeApplication data);

    void update(OvertimeApplication data);

    List<SelectResult> select();

    Page<OvertimeApplicationVO> getList(OvertimeApplicationDTO data);

    boolean exist(@Param("id") Integer id);

    Integer getState(Integer id);

    void setState(Integer state,Integer id);
}
